﻿using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IBll
{
    /// <summary>
    /// 房号接口
    /// </summary>
    public interface IStarePteabLL
    {
        /// <summary>
        /// 新增房号信息
        /// </summary>
        /// <param name="starePtea">房号表添加数据</param>
        /// <returns>返回受影响行数</returns>
        Task<int> AddAnyns(StarePtea starePtea);
        /// <summary>
        /// 逻辑删除
        /// </summary>
        /// <param name="id">主键id</param>
        /// <returns>通过id 获取一条信息</returns>
        Task<int> Isdelete(int id);

        /// <summary>
        /// 逻辑修改
        /// </summary>
        /// <param name="id">主键id</param>
        /// <returns>通过id 获取一条信息</returns>
        Task<int> ISstate(int id);


        /// <summary>
        /// 查询显示
        /// </summary>
        /// <param name="name">房号名称</param>
        /// <param name="starePteaDate">创建时间</param>
        /// <param name="index">页数</param>
        /// <param name="size">条数</param>
        /// <returns>通过房号名称房号名称页数条数查询一条数</returns>

        dynamic ShowStarePtea(string? name, DateTime? starePteaDate,DateTime? endStarePtea);

        /// <summary>
        /// 导出
        /// </summary>
        /// <returns>返回受影响行数</returns>
        List<StarePtea> GetStarePteas();












    }
}
